﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ReservaCancha.Models.Reserva1>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<script type="text/javascript" language="JavaScript" src="../../Scripts/jsControlFunction.js"></script>

    

    <h2>Reserva de Cancha</h2>
    <h3 style="color:Red"><%= TempData["mensaje"] %></h3>
    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Fields</legend>

            <table>
            <tr>
            <th><div class="editor-label">
                <%: Html.LabelFor(model => model.Codigo) %>
            </div></th>
            <th>
            <div class="editor-label">
                <%: Html.TextBoxFor(model => model.Codigo)%>
                <%: Html.ValidationMessageFor(model => model.Codigo)%>
            </div>
            </th>
            </tr>
            <TR>
   <TH style="width: 449px">Cliente</TH>
   <TH style="width: 486px">Cancha</TH>
   <TH style="width: 734px">Fecha Reserva</TH>
   <TH style="width: 734px">Hora Inicio</TH>
   <TH style="width: 734px">Hora Fin</TH>
</TR>
<TR>
   <TD style="width: 449px">
   <div class="editor-field"><%= Html.DropDownList("clientes", ViewData["clientes"] as SelectList) %></div>
   </TD>
   <TD style="width: 486px">
   <div class="editor-field"><%= Html.DropDownList("canchas", ViewData["canchas"] as SelectList) %></div>
   </TD>
   <TD style="width: 734px">
   <%: Html.TextBox("txtFechaInicioEmision")%>
   <img alt="" class="style1" src="../../Images/cal.gif" onload="javascript:Calendario(this,'txtFechaInicioEmision');" />
   </TD>
   <TD style="width: 734px">
   <div class="editor-field"><%= Html.DropDownList("horaini", ViewData["horaini"] as SelectList)%></div>
   </TD>
   <TD style="width: 734px">
   <div class="editor-field"><%= Html.DropDownList("horafin", ViewData["horafin"] as SelectList)%></div>
   </TD>
</TR> 
<tr>
   <td></td>
   <td></td>
   <td></td>
   <td></td>
   <td>Monto: <%: Html.TextBoxFor(model => model.Monto)%></td>
</tr>

     </table>
            
            <p>
                <input type="submit" value="Registrar Reserva" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Regresar a la lista", "Index") %>
    </div>


</asp:Content>

